import request from '@/utils/request'

// 查询器材审批列表
export function listConsent(query) {
  return request({
    url: '/test/consent/list',
    method: 'get',
    params: query
  })
}

// 查询器材审批详细
export function getConsent(equipmentApplicationId) {
  return request({
    url: '/test/consent/' + equipmentApplicationId,
    method: 'get'
  })
}

// 查询器材状态详细
export function getTypeId(equipmentApplicationId) {
  return request({
    url: '/test/consent/getTypeId/' + equipmentApplicationId,
    method: 'get'
  })
}


// 新增器材审批
export function addConsent(data) {
  return request({
    url: '/test/consent',
    method: 'post',
    data: data
  })
}

// 修改器材审批
export function updateConsent(data) {
  return request({
    url: '/test/consent',
    method: 'put',
    data: data
  })
}

// 删除器材审批
export function delConsent(equipmentApplicationId) {
  return request({
    url: '/test/consent/' + equipmentApplicationId,
    method: 'delete'
  })
}
